package ru.inse.web.view;

import java.io.IOException;
import java.io.OutputStream;

import ru.xeden.web.model.ModelAndView;
import ru.xeden.web.model.ModelMap;
import ru.xeden.web.view.IView;

public class View
    implements IView
{
    @Override
    public String getId()
    {
        return "inse";
    }

    @Override
    public void render(OutputStream outputStream, ModelAndView modelAndView) throws IOException
    {
        ModelMap modelMap = modelAndView.getModelMap();
        outputStream.write(("qqqqqqqqqqqqqqqqqq" + modelMap.get("data")).getBytes());
    }
}
